Skip to main content

Environments

info

Before you start.

  • Permission: Build Environment (Permissions).
  • Create the environment before your first collection. A collection needs a default REST / SOAP environment.
  • If the API needs credentials, create the secret first.
  • Use a Base URL that the AGIS server can reach. An address that only works in your own browser (for example localhost) will not work.
  • For an MQ environment, ask the team that runs the queue manager for the host, port, queue manager, channel and queue names.
  • Next: create a collection.

Environments​

Purpose: separate what is tested (cases) from where it is tested (for example test, staging or a mock server). The environment name shows up in every environment picker.

Common settings​

Environments list: protocol badge (REST / SOAP or MQ), auth badge (Basic/None/…), name, URL or host:port, "Used by n collections · Default for n".

Environments list: protocol badge (REST / SOAP or MQ), auth badge (Basic/None/…), name, URL or host:port, "Used by n collections · Default for n".

Edit Environment form (top): Name, Protocol (toggle, locked once used), Base URL, Auth (None / Basic / Bearer / API key / OAuth2 CC).

Edit Environment form (top): Name, Protocol (toggle, locked once used), Base URL, Auth (None / Basic / Bearer / API key / OAuth2 CC).

Form (bottom): Environment variables + Add variable, REFERENCED BY table (Collection / As / State), Save, Cancel, Delete environment buttons.

Form (bottom): Environment variables + Add variable, REFERENCED BY table (Collection / As / State), Save, Cancel, Delete environment buttons.

ElementSource / optionsFunction & result
NameYou enter (required, unique)Display name. It must be unique across the whole platform, so a team prefix helps. Duplicate → ENVIRONMENT_NAME_TAKEN.
ProtocolChoice: REST / SOAP or MQDetermines the form. Locked once a collection/case uses it (ENVIRONMENT_PROTOCOL_LOCKED); create a new environment to change it.
Environment variablesYou enter (Name + Value)Values for {{env.NAME}}. The plus button adds a row; the trash icon removes one (applies on Save). A variable still referenced cannot be deleted (ENVIRONMENT_VALUE_IN_USE).
REFERENCED BYAutomaticTable with columns Collection, As (e.g. DEFAULT), State (e.g. PUBLISHED v2) for collections using this environment. Empty: "No collection references this environment yet". Badge above the title: "Used by n collections" or "Not yet referenced".
Save / Cancel—Save or go back. Edit conflict → VERSION_CONFLICT (reload, then re-apply).
Delete environmentConfirmationGreyed out (disabled) while the environment is in use; red (enabled) when unused. The server also rejects it while it is referenced (ENVIRONMENT_REFERENCED).

REST / SOAP​

Auth = OAuth2 CC: Token URL, Client ID, Client secret (pick from vault), Scope (optional). New form, not saved.

Auth = OAuth2 CC: Token URL, Client ID, Client secret (pick from vault), Scope (optional). New form, not saved.

ElementSource / optionsFunction & result
Base URLYou enter (required)The one host every case calls. Resolved wherever {{baseUrl}} is used.
AuthenticationChoice: None, Basic, Bearer, API key, OAuth2 CCDefault authentication for every case using this environment (unless a case overrides it in its Request tab).
Basic → Username, PasswordUsername typed; Password picked from the vaultAuthorization: Basic header. The password must be a {{secret.x}} reference ("Select a secret reference").
Bearer → TokenPicked from the vaultAuthorization: Bearer … header.
API key → Header name, KeyHeader typed; Key from vaultSends the key in the named header.
OAuth2 CC → Token URL, Client ID, Client secret, ScopeURL & ID typed; secret from vault; Scope optionalFetches an access token with client credentials automatically at run time, then uses it as Bearer.
"(not in your vault)"AutomaticWarning when the stored reference is not in your vault; the value is preserved.

MQ​

MQ environment: Host/IP, Port, Queue manager, Channel, Inbound queue ("AGIS sends"), Outbound queue ("AGIS receives"), User ID, Password.

MQ environment: Host/IP, Port, Queue manager, Channel, Inbound queue ("AGIS sends"), Outbound queue ("AGIS receives"), User ID, Password.

MQ secret-rule note, Environment variables, REFERENCED BY ("No collection references this environment yet").

MQ secret-rule note, Environment variables, REFERENCED BY ("No collection references this environment yet").

ElementSource / optionsFunction & result
Host / IP, Port, Queue manager, ChannelYou enter (required)Connection to IBM MQ.
Inbound queueYou enter (hint: "AGIS sends")Queue where AGIS puts messages into the system. Default for all cases in this environment; a case may override it.
Outbound queueYou enter (hint: "AGIS receives")Queue where AGIS reads outgoing messages. At least one queue is required.
User ID, PasswordUser typed; Password from vaultMQ authentication. The password is resolved from the vault of whoever starts the run; if missing → SECRET_MISSING at submission.
tip

Direction is named from the system under test's point of view: Inbound = a message goes into the system (AGIS puts); Outbound = a message comes out of the system (AGIS reads).